package com.example.xxpk.common.enums;


public enum UserResultEnum implements ResultInterface {
    USER_LOGIN_SAME(100610, "你已经在别地方登录了"),
    TOKEN_ERROR(100611, "token 过期了"),
    TOKEN_NOT_FOUND(100612, "token 找不到"),
    TOKEN_ERROR_STATUS(100613, "token无效"),
    USER_NULL_ERROR(100614, "用户"),
    USER_LOGIN_UUID_EMPTY(100615, "会话过期了..."),
    USER_NOT_LOGIN(100616, "用户未登录");

//    USER_SERVER_ERROR(110602, "服务出现故障"),
//    USER_INPUT_USERNAME_ERROR(110603, "用户名或密码输入有误"),
//    USER_FORBIDDEN_ERROR(110606, "用户异常,请联系管理员"),
//    USER_NAME_NOT_EMPTY(110607, "账号不能是空"),
//    USER_PWD_NOT_EMPTY(110608, "密码不能为空"),
//    USER_CODE_NOT_EMPTY(110609, "验证码不能为空"),
//    USER_LOGIN_UUID_EMPTY(110610, "会话过期了..."),
//    USER_CODE_INPUT_ERROR(110611, "验证码输入有误"),
//    ACCOUNT_REG_ERROR(110602,"用户存在"),
//    USER_ROLE_AUTH_ERROR(110603,"111"),
//    USER_ROLE_AUTH_EMPTY(110604,"没有权限"),
//    NULL_ERROR(120001, "内容&id不允许为空");




    private Integer code;
    private String msg;

    UserResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
